<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>字段信息</title>
<%@ include file="/common/include.jsp"%>
<link href="/summer/template/admin/css/list.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	.list .pagerBar .updatePriceButton {
	width: 63px;
	height: 29px;
	line-height: 29px;
	float: left;
	margin-left: 6px;
	text-align: center;
	cursor: pointer;
	outline: none;
	border: none;
	background: url(/summer/template/admin/images/list_bg.gif) -90px -30px repeat-x;
	.list .pagerBar .updatePriceButton:hover {
	background: url(/summer/template/admin/images/list_bg.gif) -90px -60px repeat-x;
}
}
</style>
<script type="text/javascript" src="/summer/template/admin/js/list.js"></script>
<script type="text/javascript">
$().ready( function() {
	var $saveButton = $(".list input.saveButton");// 更新价格按钮
	$saveButton.click( function() {
		var url = $(this).attr("url");
			document.getElementById("listForm").action=url;
			document.getElementById("listForm").submit();
	});
	
});

</script>
<meta name="Author" content="Summer++ Team" />
<meta name="Copyright" content="SUMMER" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
</head>
<body class="list">
<div class="body">
<div class="listBar">
<table width="100%"><tr>
<td width="30%"><h1><span class="icon">&nbsp;</span>商品列表<span class="pageInfo">总记录数: --- ${pager.totalCount}(共 ${pager.pageCount}页)</span></h1></td>
<td width="30%"></td>
<td><ul class="tab"><li><input class="saveButton" url="field!edit_all.action?field.table.id=${field.table.id}"  type="button" value="批量更新" hidefocus="true"  /></li></ul></td>
</tr></table>
</div>
<form id="listForm" action="field!list.action" method="post">
<div class="operateBar"><input type="button" class="addButton"
	onclick="location.href='field!add.action'" value="添加产品" /> <label>查找:</label>
<select name="pager.property">
					<option value="name" >
						名称
					</option>
					
</select>
<label class="searchText"><input type="text" id="pager11" width="200"
	name="pager.keyword" value=' ${pager.keyword}' /></label><input type="button"
	id="searchButton" class="searchButton" value="" onclick="submit()" /> <label>每页显示:</label>
<select name="pager.pageSize" id="pageSize">
<option value="5"
		<s:if test="pager.pageSize==5">selected="selected" </s:if>>
	5</option>
	<option value="10"
		<s:if test="pager.pageSize==10">selected="selected" </s:if>>
	10</option>
	<option value="20"
		<s:if test="pager.pageSize==20">selected="selected" </s:if>>
	20</option>
	<option value="50"
		<s:if test="pager.pageSize==50">selected="selected" </s:if>>
	50</option>
	<option value="100"
		<s:if test="pager.pageSize==100">selected="selected" </s:if>>
	100</option>
</select>
</div>
<table class="listTable">
	<tr>
		<th class="check"><input type="checkbox" class="allCheck" /></th>
				<th><span class="sort" name="field_type">field_type</span></th>
				<th><span class="sort" name="sort">sort</span></th>
				<th><span class="sort" name="en_name">en_name</span></th>
				<th><span class="sort" name="table">table</span></th>
				<th><span class="sort" name="var_size">var_size</span></th>
				<th><span class="sort" name="fk_table">fk_table</span></th>
				<th><span class="sort" name="is_pk">is_pk</span></th>
				<th><span class="sort" name="is_form">is_form</span></th>
				<th><span class="sort" name="name">name</span></th>
				<th><span class="sort" name="cn_name">cn_name</span></th>
				<th><span class="sort" name="serialVersionUID">serialVersionUID</span></th>
				<th><span class="sort" name="fk_name">fk_name</span></th>
				<th><span class="sort" name="is_fk">is_fk</span></th>
		<th>操作</th>
	</tr>

	<s:iterator value="pager.list" id="field">
		<tr>
			<td><input type="checkbox" name="ids" value="<s:property value="id" />" /></td>
					<td><s:property value="field_type" /></td> 
					<td><s:property value="sort" /></td> 
					<td><s:property value="en_name" /></td> 
					<td><s:property value="table.name" /></td> 
					<td><s:property value="var_size" /></td> 
					<td><s:property value="fk_table" /></td> 
					<td><s:property value="is_pk" /></td> 
					<td><s:property value="is_form" /></td> 
					<td><s:property value="name" /></td> 
					<td><s:property value="cn_name" /></td> 
					<td><s:property value="serialVersionUID" /></td> 
					<td><s:property value="fk_name" /></td> 
					<td><s:property value="is_fk" /></td> 
			<td>     
				<a href="field!edit.action?id=<s:property value="id" />" title="编辑">[编辑]</a> 
			</td>
		</tr>
	</s:iterator>

</table>
<s:if test="pager.pageSize>0">
				<div class="pagerBar">
					<input type="button" class="deleteButton" url="field!delete.action" value="删 除" disabled hidefocus="true" />
			<jsp:include page="/jsp/page.jsp"></jsp:include>
				</div>
			</s:if>
			<s:else>
				<div class="noRecord">
					没有找到任何记录!
				</div>
			</s:else>
</form>
</div>
</body>
</html>

 
